package com.bosicloud.cmb.ibp;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.cloud.aws.messaging.core.QueueMessagingTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.stereotype.Component;

import static com.bosicloud.cmb.ibp.commom.constant.QueueConstant.*;

/**
 * 队列名称自动创建
 */
@Component
@Getter
@ToString
@NoArgsConstructor
@ConditionalOnClass({QueueMessagingTemplate.class})
@SuppressWarnings("ALL")
@Configuration
public class QueueNames {


    @Value(IBP_AWS_SQS_REQUEST_KEY)
    String request;

    @Value(IBP_AWS_SQS_RESPONSE_ACCOUNT_KEY)
    String responseAccount;

    @Value(IBP_AWS_SQS_RESPONSE_API_MANAGER_KEY)
    String responseApiManager;

    @Value(IBP_AWS_SQS_CF_NOTIFY_KEY)
    String cfNotify;

    @Value(IBP_AWS_SQS_RESPONSE_MICROPLATFORM_KEY)
    String responseMicroPlatform;


    /** Deprecated **
    public QueueNames(@Value(IBP_AWS_SQS_REQUEST_KEY) String request,
                      @Value(IBP_AWS_SQS_RESPONSE_ACCOUNT_KEY) String responseAccount,
                      @Value(IBP_AWS_SQS_RESPONSE_API_MANAGER_KEY) String responseApiManager,
                      @Value(IBP_AWS_SQS_CF_NOTIFY_KEY) String cfNotify,
                      @Value(IBP_AWS_SQS_RESPONSE_MICROPLATFORM_KEY) String responseMicroPlatform) {
        this.request = request;
        this.responseAccount = responseAccount;
        this.responseApiManager = responseApiManager;
        this.cfNotify = cfNotify;
        this.responseMicroPlatform = responseMicroPlatform;
    }
    **/
}
